package com.github_Dididipapa.shortlink.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github_Dididipapa.shortlink.project.dao.entity.LinkAccessLogs;
import com.github_Dididipapa.shortlink.project.dao.mapper.LinkAccessLogsMapper;
import com.github_Dididipapa.shortlink.project.dto.resp.LinkAccessLogsRespDTO;
import com.github_Dididipapa.shortlink.project.dto.resp.LinkDaily;
import com.github_Dididipapa.shortlink.project.service.LinkAccessLogsService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description: To be defined
 * @author: dididi_papa
 * @email: mitis1624087624@gmail.com
 * @date: 2025/09/19  22:00
 */
@Service
@RequiredArgsConstructor
public class LinkAccessLogsServiceImpl extends ServiceImpl<LinkAccessLogsMapper, LinkAccessLogs> implements LinkAccessLogsService {
    private final LinkAccessLogsMapper linkAccessLogsMapper;
    @Override
    public List<LinkAccessLogsRespDTO> shortLinkHotRank(String fullShortUrl) {
        return linkAccessLogsMapper.shortLinkHotRank(fullShortUrl);
    }

    @Override
    public LinkDaily shortLinkDaily(String fullShortUrl) {
        return linkAccessLogsMapper.shortLinkDaily(fullShortUrl);
    }
}
